package com.yy.filetr;

import com.yy.model.enums.ResultEnum;

/**
 * @ClassName:       ZfException
 * @Description:     自定义异常
 * @author:            李盈盈
 * @date:            2018年2月27日        下午2:11:30
 */
public class YyException extends RuntimeException{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1321166842906287631L;
	private Integer code;

	public YyException(ResultEnum resultEnum) {
		super(resultEnum.getMsg());
		this.code = resultEnum.getCode();
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

}
